package com.cskaoyan.javase.oop3._2inner._2static._2classload;

/**
 * @description: 静态内部类和外围类类加载不会互相触发
 * @author: wuguidong@cskaoyan.onaliyun.com
 **/

public class Demo {

    public static void main(String[] args) {
        //Inner i = new Inner();
        EnclosedClazz.Inner ic = new EnclosedClazz.Inner();

    }

   /* static class Inner{
        static {
            System.out.println("Inner类加载了");
        }
    }*/
}

class EnclosedClazz {
    static {
        System.out.println("外围类Demo类加载了!");
    }

    static class Inner {
        static {
            System.out.println("Inner类加载了");
        }
    }
}
